/*
 * Copyright (C) 2019-2020 Alibaba Group Holding Limited
 */

#ifndef __GIF_DECODER_H__
#define __GIF_DECODER_H__

#ifdef __cplusplus
extern "C" {
#endif

typedef struct _gif_decoder_handler_t gif_decoder_handler_t;

gif_decoder_handler_t *gif_new(const char *url);
int gif_get_next_image(gif_decoder_handler_t *hdl, uint8_t *image_r, uint8_t *image_g, uint8_t *image_b, int *delay_ms);
int gif_get_height(gif_decoder_handler_t *hdl);
int gif_get_width(gif_decoder_handler_t *hdl);
int gif_free(gif_decoder_handler_t *hdl);

#ifdef __cplusplus
}
#endif

#endif
